home *** CD-ROM | disk | FTP | other *** search
- //
- // The Fusion Library Interface for DOS
- // Version 1.06c
- // Copyright (C) 1990, 1991, 1992
- // Software Dimensions
- //
- // FusionWindow
- //
-
- #include "fliwin.h"
-
- #ifdef __BCPLUSPLUS__
- #pragma hdrstop
- #endif
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // ZoomWindow()
- //
- // Zooms or unzooms the current window
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- void FusionWindow::ZoomWindow()
- {
- if (!NumberOfWindows)
- return;
-
- RemoveAllMenus();
-
- WindowElement &Window=*Windows[0];
-
- if (!Window.ZoomIcon)
- return;
-
- if (!Window.WindowZoomed)
- {
- Window.OldX=Window.X;
- Window.OldY=Window.Y;
- Window.OldWidth=Window.Width;
- Window.OldHeight=Window.Height;
- Window.WindowZoomed=1;
- Window.X=0;
- Window.Y=1;
- Window.Width=Blaze.WhatWidth();
- Window.Height=Blaze.WhatHeight()-2;
- Window.ShowWindow();
- Window.ShowInterior();
- Window.EventHandler(ZoomEvent);
- return;
- }
- else
- {
- Window.X=Window.OldX;
- Window.Y=Window.OldY;
- Window.Width=Window.OldWidth;
- Window.Height=Window.OldHeight;
- Window.WindowZoomed=0;
- RefreshWindows();
- Window.EventHandler(ZoomEvent);
- return;
- }
- }
-
-